package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * @author shen.yang
 * @version v1.0
 * @Description
 * @date 2022/6/14 17:16
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ApprovalRecordsDTO extends BaseDTO {
    private static final long serialVersionUID = 1833514798848096422L;

    /**
     * 应用id
     */
    private Long appId;

    /**
     * 菜单id
     */
    private Long menuId;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.workflowNodeTaskGet.formId.NotNull}")
    private Long formId;
    /**
     * 是否是saas 1：saas  2：paas
     */
    @DecimalMin(value = "1", message = "{dto.msg.workflowNodeTaskGet.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.workflowNodeTaskGet.saasMark.DecimalMax}")
    @NotNull(message = "{dto.msg.workflowNodeTaskGet.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * saas业务类型
     */
    @NotNull(message = "{dto.msg.workflowNodeTaskGet.businessType.NotNull}")
    private Integer businessType;

    @NotNull(message = "{dto.msg.workflowNodeTaskGet.dataId.NotNull}")
    private Long dataId;




}
